<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
      <el-form-item label="共几页" prop="totalPage">
        <el-input
          v-model="queryParams.totalPage"
          placeholder="请输入共几页"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="第几页" prop="page">
        <el-input
          v-model="queryParams.page"
          placeholder="请输入第几页"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="记录编号" prop="jilbh">
        <el-input
          v-model="queryParams.jilbh"
          placeholder="请输入记录编号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="检测单位名称" prop="jiancdwmc">
        <el-input
          v-model="queryParams.jiancdwmc"
          placeholder="请输入检测单位名称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="工程名称" prop="gongcmc">
        <el-input
          v-model="queryParams.gongcmc"
          placeholder="请输入工程名称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="工程部位/用途" prop="gongcbwyt">
        <el-input
          v-model="queryParams.gongcbwyt"
          placeholder="请输入工程部位/用途"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="样品名称" prop="yangpmc">
        <el-input
          v-model="queryParams.yangpmc"
          placeholder="请输入样品名称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="样品编号" prop="yangpbh">
        <el-input
          v-model="queryParams.yangpbh"
          placeholder="请输入样品编号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="样品数量" prop="yangpsl">
        <el-input
          v-model="queryParams.yangpsl"
          placeholder="请输入样品数量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="样品状态" prop="yangpzt">
        <el-input
          v-model="queryParams.yangpzt"
          placeholder="请输入样品状态"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="样品时间" prop="yangpsj">
        <el-input
          v-model="queryParams.yangpsj"
          placeholder="请输入样品时间"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="试验检测日期" prop="shiyjcrq">
        <el-input
          v-model="queryParams.shiyjcrq"
          placeholder="请输入试验检测日期"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="试验条件温度" prop="shiytjwd">
        <el-input
          v-model="queryParams.shiytjwd"
          placeholder="请输入试验条件温度"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="试验条件湿度" prop="shiytjsd">
        <el-input
          v-model="queryParams.shiytjsd"
          placeholder="请输入试验条件湿度"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="检测依据" prop="jiancyj">
        <el-input
          v-model="queryParams.jiancyj"
          placeholder="请输入检测依据"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="判定依据" prop="pandyj">
        <el-input
          v-model="queryParams.pandyj"
          placeholder="请输入判定依据"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="检测依据ids" prop="jiancyjIds">
        <el-input
          v-model="queryParams.jiancyjIds"
          placeholder="请输入检测依据ids"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="判定依据ids" prop="pandyjIds">
        <el-input
          v-model="queryParams.pandyjIds"
          placeholder="请输入判定依据ids"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="主要仪器设备名称及编号" prop="zhuyyqsbmcjbh">
        <el-input
          v-model="queryParams.zhuyyqsbmcjbh"
          placeholder="请输入主要仪器设备名称及编号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="设备id逗号分隔" prop="shebIds">
        <el-input
          v-model="queryParams.shebIds"
          placeholder="请输入设备id逗号分隔"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="附加声明" prop="fujsm">
        <el-input
          v-model="queryParams.fujsm"
          placeholder="请输入附加声明"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="未灼烧试样质量" prop="a11">
        <el-input
          v-model="queryParams.a11"
          placeholder="请输入未灼烧试样质量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="坩埚质量" prop="a12">
        <el-input
          v-model="queryParams.a12"
          placeholder="请输入坩埚质量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="灼烧后坩埚与试样质量" prop="a13">
        <el-input
          v-model="queryParams.a13"
          placeholder="请输入灼烧后坩埚与试样质量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="三氧化硫含量" prop="a14">
        <el-input
          v-model="queryParams.a14"
          placeholder="请输入三氧化硫含量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="未灼烧试样质量" prop="a21">
        <el-input
          v-model="queryParams.a21"
          placeholder="请输入未灼烧试样质量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="坩埚质量" prop="a22">
        <el-input
          v-model="queryParams.a22"
          placeholder="请输入坩埚质量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="灼烧后坩埚与试样质量" prop="a23">
        <el-input
          v-model="queryParams.a23"
          placeholder="请输入灼烧后坩埚与试样质量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="三氧化硫含量" prop="a24">
        <el-input
          v-model="queryParams.a24"
          placeholder="请输入三氧化硫含量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="平均值" prop="aPjz">
        <el-input
          v-model="queryParams.aPjz"
          placeholder="请输入平均值"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="灼烧试样质量" prop="b11">
        <el-input
          v-model="queryParams.b11"
          placeholder="请输入灼烧试样质量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="坩埚质量" prop="b12">
        <el-input
          v-model="queryParams.b12"
          placeholder="请输入坩埚质量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="灼烧后坩埚与试样质量" prop="b13">
        <el-input
          v-model="queryParams.b13"
          placeholder="请输入灼烧后坩埚与试样质量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="三氧化硫含量" prop="b14">
        <el-input
          v-model="queryParams.b14"
          placeholder="请输入三氧化硫含量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="灼烧试样质量" prop="b21">
        <el-input
          v-model="queryParams.b21"
          placeholder="请输入灼烧试样质量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="坩埚质量" prop="b22">
        <el-input
          v-model="queryParams.b22"
          placeholder="请输入坩埚质量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="灼烧后坩埚与试样质量" prop="b23">
        <el-input
          v-model="queryParams.b23"
          placeholder="请输入灼烧后坩埚与试样质量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="三氧化硫含量" prop="b24">
        <el-input
          v-model="queryParams.b24"
          placeholder="请输入三氧化硫含量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="平均值" prop="bPjz">
        <el-input
          v-model="queryParams.bPjz"
          placeholder="请输入平均值"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="坩埚质量" prop="c11">
        <el-input
          v-model="queryParams.c11"
          placeholder="请输入坩埚质量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="试料质量" prop="c12">
        <el-input
          v-model="queryParams.c12"
          placeholder="请输入试料质量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="灼烧后坩埚与试样质量" prop="c13">
        <el-input
          v-model="queryParams.c13"
          placeholder="请输入灼烧后坩埚与试样质量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="灼烧后试样的质量" prop="c14">
        <el-input
          v-model="queryParams.c14"
          placeholder="请输入灼烧后试样的质量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="烧失量测值" prop="c15">
        <el-input
          v-model="queryParams.c15"
          placeholder="请输入烧失量测值"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="坩埚质量" prop="c21">
        <el-input
          v-model="queryParams.c21"
          placeholder="请输入坩埚质量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="试料质量" prop="c22">
        <el-input
          v-model="queryParams.c22"
          placeholder="请输入试料质量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="灼烧后坩埚与试样质量" prop="c23">
        <el-input
          v-model="queryParams.c23"
          placeholder="请输入灼烧后坩埚与试样质量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="灼烧后试样的质量" prop="c24">
        <el-input
          v-model="queryParams.c24"
          placeholder="请输入灼烧后试样的质量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="烧失量测值" prop="c25">
        <el-input
          v-model="queryParams.c25"
          placeholder="请输入烧失量测值"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="平均值" prop="cPjz">
        <el-input
          v-model="queryParams.cPjz"
          placeholder="请输入平均值"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="校正后烧失量(%)c" prop="cJzhssl">
        <el-input
          v-model="queryParams.cJzhssl"
          placeholder="请输入校正后烧失量(%)c"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          plain
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
          v-hasPermi="['report_chl:chlFmhsslBsInfo:add']"
        >新增</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="success"
          plain
          icon="el-icon-edit"
          size="mini"
          :disabled="single"
          @click="handleUpdate"
          v-hasPermi="['report_chl:chlFmhsslBsInfo:edit']"
        >修改</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="danger"
          plain
          icon="el-icon-delete"
          size="mini"
          :disabled="multiple"
          @click="handleDelete"
          v-hasPermi="['report_chl:chlFmhsslBsInfo:remove']"
        >删除</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
          @click="handleExport"
          v-hasPermi="['report_chl:chlFmhsslBsInfo:export']"
        >导出</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <el-table v-loading="loading" :data="chlFmhsslBsInfoList" @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="一份excel表格的唯一id(其他的excel主表，都应有此字段）" align="center" prop="excelId" v-if="true"/>
      <el-table-column label="共几页" align="center" prop="totalPage" />
      <el-table-column label="第几页" align="center" prop="page" />
      <el-table-column label="记录编号" align="center" prop="jilbh" />
      <el-table-column label="检测单位名称" align="center" prop="jiancdwmc" />
      <el-table-column label="工程名称" align="center" prop="gongcmc" />
      <el-table-column label="工程部位/用途" align="center" prop="gongcbwyt" />
      <el-table-column label="样品名称" align="center" prop="yangpmc" />
      <el-table-column label="样品编号" align="center" prop="yangpbh" />
      <el-table-column label="样品数量" align="center" prop="yangpsl" />
      <el-table-column label="样品状态" align="center" prop="yangpzt" />
      <el-table-column label="样品时间" align="center" prop="yangpsj" />
      <el-table-column label="试验检测日期" align="center" prop="shiyjcrq" />
      <el-table-column label="试验条件温度" align="center" prop="shiytjwd" />
      <el-table-column label="试验条件湿度" align="center" prop="shiytjsd" />
      <el-table-column label="检测依据" align="center" prop="jiancyj" />
      <el-table-column label="判定依据" align="center" prop="pandyj" />
      <el-table-column label="检测依据ids" align="center" prop="jiancyjIds" />
      <el-table-column label="判定依据ids" align="center" prop="pandyjIds" />
      <el-table-column label="主要仪器设备名称及编号" align="center" prop="zhuyyqsbmcjbh" />
      <el-table-column label="设备id逗号分隔" align="center" prop="shebIds" />
      <el-table-column label="附加声明" align="center" prop="fujsm" />
      <el-table-column label="未灼烧试样质量" align="center" prop="a11" />
      <el-table-column label="坩埚质量" align="center" prop="a12" />
      <el-table-column label="灼烧后坩埚与试样质量" align="center" prop="a13" />
      <el-table-column label="三氧化硫含量" align="center" prop="a14" />
      <el-table-column label="未灼烧试样质量" align="center" prop="a21" />
      <el-table-column label="坩埚质量" align="center" prop="a22" />
      <el-table-column label="灼烧后坩埚与试样质量" align="center" prop="a23" />
      <el-table-column label="三氧化硫含量" align="center" prop="a24" />
      <el-table-column label="平均值" align="center" prop="aPjz" />
      <el-table-column label="灼烧试样质量" align="center" prop="b11" />
      <el-table-column label="坩埚质量" align="center" prop="b12" />
      <el-table-column label="灼烧后坩埚与试样质量" align="center" prop="b13" />
      <el-table-column label="三氧化硫含量" align="center" prop="b14" />
      <el-table-column label="灼烧试样质量" align="center" prop="b21" />
      <el-table-column label="坩埚质量" align="center" prop="b22" />
      <el-table-column label="灼烧后坩埚与试样质量" align="center" prop="b23" />
      <el-table-column label="三氧化硫含量" align="center" prop="b24" />
      <el-table-column label="平均值" align="center" prop="bPjz" />
      <el-table-column label="坩埚质量" align="center" prop="c11" />
      <el-table-column label="试料质量" align="center" prop="c12" />
      <el-table-column label="灼烧后坩埚与试样质量" align="center" prop="c13" />
      <el-table-column label="灼烧后试样的质量" align="center" prop="c14" />
      <el-table-column label="烧失量测值" align="center" prop="c15" />
      <el-table-column label="坩埚质量" align="center" prop="c21" />
      <el-table-column label="试料质量" align="center" prop="c22" />
      <el-table-column label="灼烧后坩埚与试样质量" align="center" prop="c23" />
      <el-table-column label="灼烧后试样的质量" align="center" prop="c24" />
      <el-table-column label="烧失量测值" align="center" prop="c25" />
      <el-table-column label="平均值" align="center" prop="cPjz" />
      <el-table-column label="校正后烧失量(%)c" align="center" prop="cJzhssl" />
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="handleUpdate(scope.row)"
            v-hasPermi="['report_chl:chlFmhsslBsInfo:edit']"
          >修改</el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            @click="handleDelete(scope.row)"
            v-hasPermi="['report_chl:chlFmhsslBsInfo:remove']"
          >删除</el-button>
        </template>
      </el-table-column>
    </el-table>

    <pagination
      v-show="total>0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />

    <!-- 添加或修改粉煤灰烧失量试验检测记录对话框 -->
    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
        <el-form-item label="共几页" prop="totalPage">
          <el-input v-model="form.totalPage" placeholder="请输入共几页" />
        </el-form-item>
        <el-form-item label="第几页" prop="page">
          <el-input v-model="form.page" placeholder="请输入第几页" />
        </el-form-item>
        <el-form-item label="记录编号" prop="jilbh">
          <el-input v-model="form.jilbh" placeholder="请输入记录编号" />
        </el-form-item>
        <el-form-item label="检测单位名称" prop="jiancdwmc">
          <el-input v-model="form.jiancdwmc" placeholder="请输入检测单位名称" />
        </el-form-item>
        <el-form-item label="工程名称" prop="gongcmc">
          <el-input v-model="form.gongcmc" placeholder="请输入工程名称" />
        </el-form-item>
        <el-form-item label="工程部位/用途" prop="gongcbwyt">
          <el-input v-model="form.gongcbwyt" placeholder="请输入工程部位/用途" />
        </el-form-item>
        <el-form-item label="样品名称" prop="yangpmc">
          <el-input v-model="form.yangpmc" placeholder="请输入样品名称" />
        </el-form-item>
        <el-form-item label="样品编号" prop="yangpbh">
          <el-input v-model="form.yangpbh" placeholder="请输入样品编号" />
        </el-form-item>
        <el-form-item label="样品数量" prop="yangpsl">
          <el-input v-model="form.yangpsl" placeholder="请输入样品数量" />
        </el-form-item>
        <el-form-item label="样品状态" prop="yangpzt">
          <el-input v-model="form.yangpzt" placeholder="请输入样品状态" />
        </el-form-item>
        <el-form-item label="样品时间" prop="yangpsj">
          <el-input v-model="form.yangpsj" placeholder="请输入样品时间" />
        </el-form-item>
        <el-form-item label="试验检测日期" prop="shiyjcrq">
          <el-input v-model="form.shiyjcrq" placeholder="请输入试验检测日期" />
        </el-form-item>
        <el-form-item label="试验条件温度" prop="shiytjwd">
          <el-input v-model="form.shiytjwd" placeholder="请输入试验条件温度" />
        </el-form-item>
        <el-form-item label="试验条件湿度" prop="shiytjsd">
          <el-input v-model="form.shiytjsd" placeholder="请输入试验条件湿度" />
        </el-form-item>
        <el-form-item label="检测依据" prop="jiancyj">
          <el-input v-model="form.jiancyj" placeholder="请输入检测依据" />
        </el-form-item>
        <el-form-item label="判定依据" prop="pandyj">
          <el-input v-model="form.pandyj" placeholder="请输入判定依据" />
        </el-form-item>
        <el-form-item label="检测依据ids" prop="jiancyjIds">
          <el-input v-model="form.jiancyjIds" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="判定依据ids" prop="pandyjIds">
          <el-input v-model="form.pandyjIds" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="主要仪器设备名称及编号" prop="zhuyyqsbmcjbh">
          <el-input v-model="form.zhuyyqsbmcjbh" placeholder="请输入主要仪器设备名称及编号" />
        </el-form-item>
        <el-form-item label="设备id逗号分隔" prop="shebIds">
          <el-input v-model="form.shebIds" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="附加声明" prop="fujsm">
          <el-input v-model="form.fujsm" placeholder="请输入附加声明" />
        </el-form-item>
        <el-form-item label="未灼烧试样质量" prop="a11">
          <el-input v-model="form.a11" placeholder="请输入未灼烧试样质量" />
        </el-form-item>
        <el-form-item label="坩埚质量" prop="a12">
          <el-input v-model="form.a12" placeholder="请输入坩埚质量" />
        </el-form-item>
        <el-form-item label="灼烧后坩埚与试样质量" prop="a13">
          <el-input v-model="form.a13" placeholder="请输入灼烧后坩埚与试样质量" />
        </el-form-item>
        <el-form-item label="三氧化硫含量" prop="a14">
          <el-input v-model="form.a14" placeholder="请输入三氧化硫含量" />
        </el-form-item>
        <el-form-item label="未灼烧试样质量" prop="a21">
          <el-input v-model="form.a21" placeholder="请输入未灼烧试样质量" />
        </el-form-item>
        <el-form-item label="坩埚质量" prop="a22">
          <el-input v-model="form.a22" placeholder="请输入坩埚质量" />
        </el-form-item>
        <el-form-item label="灼烧后坩埚与试样质量" prop="a23">
          <el-input v-model="form.a23" placeholder="请输入灼烧后坩埚与试样质量" />
        </el-form-item>
        <el-form-item label="三氧化硫含量" prop="a24">
          <el-input v-model="form.a24" placeholder="请输入三氧化硫含量" />
        </el-form-item>
        <el-form-item label="平均值" prop="aPjz">
          <el-input v-model="form.aPjz" placeholder="请输入平均值" />
        </el-form-item>
        <el-form-item label="灼烧试样质量" prop="b11">
          <el-input v-model="form.b11" placeholder="请输入灼烧试样质量" />
        </el-form-item>
        <el-form-item label="坩埚质量" prop="b12">
          <el-input v-model="form.b12" placeholder="请输入坩埚质量" />
        </el-form-item>
        <el-form-item label="灼烧后坩埚与试样质量" prop="b13">
          <el-input v-model="form.b13" placeholder="请输入灼烧后坩埚与试样质量" />
        </el-form-item>
        <el-form-item label="三氧化硫含量" prop="b14">
          <el-input v-model="form.b14" placeholder="请输入三氧化硫含量" />
        </el-form-item>
        <el-form-item label="灼烧试样质量" prop="b21">
          <el-input v-model="form.b21" placeholder="请输入灼烧试样质量" />
        </el-form-item>
        <el-form-item label="坩埚质量" prop="b22">
          <el-input v-model="form.b22" placeholder="请输入坩埚质量" />
        </el-form-item>
        <el-form-item label="灼烧后坩埚与试样质量" prop="b23">
          <el-input v-model="form.b23" placeholder="请输入灼烧后坩埚与试样质量" />
        </el-form-item>
        <el-form-item label="三氧化硫含量" prop="b24">
          <el-input v-model="form.b24" placeholder="请输入三氧化硫含量" />
        </el-form-item>
        <el-form-item label="平均值" prop="bPjz">
          <el-input v-model="form.bPjz" placeholder="请输入平均值" />
        </el-form-item>
        <el-form-item label="坩埚质量" prop="c11">
          <el-input v-model="form.c11" placeholder="请输入坩埚质量" />
        </el-form-item>
        <el-form-item label="试料质量" prop="c12">
          <el-input v-model="form.c12" placeholder="请输入试料质量" />
        </el-form-item>
        <el-form-item label="灼烧后坩埚与试样质量" prop="c13">
          <el-input v-model="form.c13" placeholder="请输入灼烧后坩埚与试样质量" />
        </el-form-item>
        <el-form-item label="灼烧后试样的质量" prop="c14">
          <el-input v-model="form.c14" placeholder="请输入灼烧后试样的质量" />
        </el-form-item>
        <el-form-item label="烧失量测值" prop="c15">
          <el-input v-model="form.c15" placeholder="请输入烧失量测值" />
        </el-form-item>
        <el-form-item label="坩埚质量" prop="c21">
          <el-input v-model="form.c21" placeholder="请输入坩埚质量" />
        </el-form-item>
        <el-form-item label="试料质量" prop="c22">
          <el-input v-model="form.c22" placeholder="请输入试料质量" />
        </el-form-item>
        <el-form-item label="灼烧后坩埚与试样质量" prop="c23">
          <el-input v-model="form.c23" placeholder="请输入灼烧后坩埚与试样质量" />
        </el-form-item>
        <el-form-item label="灼烧后试样的质量" prop="c24">
          <el-input v-model="form.c24" placeholder="请输入灼烧后试样的质量" />
        </el-form-item>
        <el-form-item label="烧失量测值" prop="c25">
          <el-input v-model="form.c25" placeholder="请输入烧失量测值" />
        </el-form-item>
        <el-form-item label="平均值" prop="cPjz">
          <el-input v-model="form.cPjz" placeholder="请输入平均值" />
        </el-form-item>
        <el-form-item label="校正后烧失量(%)c" prop="cJzhssl">
          <el-input v-model="form.cJzhssl" placeholder="请输入校正后烧失量(%)c" />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button :loading="buttonLoading" type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import { listChlFmhsslBsInfo, getChlFmhsslBsInfo, delChlFmhsslBsInfo, addChlFmhsslBsInfo, updateChlFmhsslBsInfo } from "@/api/report_chl/chlFmhsslBsInfo";

export default {
  name: "ChlFmhsslBsInfo",
  data() {
    return {
      // 按钮loading
      buttonLoading: false,
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 粉煤灰烧失量试验检测记录表格数据
      chlFmhsslBsInfoList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        totalPage: undefined,
        page: undefined,
        jilbh: undefined,
        jiancdwmc: undefined,
        gongcmc: undefined,
        gongcbwyt: undefined,
        yangpmc: undefined,
        yangpbh: undefined,
        yangpsl: undefined,
        yangpzt: undefined,
        yangpsj: undefined,
        shiyjcrq: undefined,
        shiytjwd: undefined,
        shiytjsd: undefined,
        jiancyj: undefined,
        pandyj: undefined,
        jiancyjIds: undefined,
        pandyjIds: undefined,
        zhuyyqsbmcjbh: undefined,
        shebIds: undefined,
        fujsm: undefined,
        a11: undefined,
        a12: undefined,
        a13: undefined,
        a14: undefined,
        a21: undefined,
        a22: undefined,
        a23: undefined,
        a24: undefined,
        aPjz: undefined,
        b11: undefined,
        b12: undefined,
        b13: undefined,
        b14: undefined,
        b21: undefined,
        b22: undefined,
        b23: undefined,
        b24: undefined,
        bPjz: undefined,
        c11: undefined,
        c12: undefined,
        c13: undefined,
        c14: undefined,
        c15: undefined,
        c21: undefined,
        c22: undefined,
        c23: undefined,
        c24: undefined,
        c25: undefined,
        cPjz: undefined,
        cJzhssl: undefined
      },
      // 表单参数
      form: {},
      // 表单校验
      rules: {
      }
    };
  },
  created() {
    this.getList();
  },
  methods: {
    /** 查询粉煤灰烧失量试验检测记录列表 */
    getList() {
      this.loading = true;
      listChlFmhsslBsInfo(this.queryParams).then(response => {
        this.chlFmhsslBsInfoList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        excelId: undefined,
        totalPage: undefined,
        page: undefined,
        jilbh: undefined,
        jiancdwmc: undefined,
        gongcmc: undefined,
        gongcbwyt: undefined,
        yangpmc: undefined,
        yangpbh: undefined,
        yangpsl: undefined,
        yangpzt: undefined,
        yangpsj: undefined,
        shiyjcrq: undefined,
        shiytjwd: undefined,
        shiytjsd: undefined,
        jiancyj: undefined,
        pandyj: undefined,
        jiancyjIds: undefined,
        pandyjIds: undefined,
        zhuyyqsbmcjbh: undefined,
        shebIds: undefined,
        fujsm: undefined,
        delFlag: undefined,
        createBy: undefined,
        createTime: undefined,
        updateBy: undefined,
        updateTime: undefined,
        a11: undefined,
        a12: undefined,
        a13: undefined,
        a14: undefined,
        a21: undefined,
        a22: undefined,
        a23: undefined,
        a24: undefined,
        aPjz: undefined,
        b11: undefined,
        b12: undefined,
        b13: undefined,
        b14: undefined,
        b21: undefined,
        b22: undefined,
        b23: undefined,
        b24: undefined,
        bPjz: undefined,
        c11: undefined,
        c12: undefined,
        c13: undefined,
        c14: undefined,
        c15: undefined,
        c21: undefined,
        c22: undefined,
        c23: undefined,
        c24: undefined,
        c25: undefined,
        cPjz: undefined,
        cJzhssl: undefined
      };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map(item => item.excelId)
      this.single = selection.length!==1
      this.multiple = !selection.length
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
      this.title = "添加粉煤灰烧失量试验检测记录";
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.loading = true;
      this.reset();
      const excelId = row.excelId || this.ids
      getChlFmhsslBsInfo(excelId).then(response => {
        this.loading = false;
        this.form = response.data;
        this.open = true;
        this.title = "修改粉煤灰烧失量试验检测记录";
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate(valid => {
        if (valid) {
          this.buttonLoading = true;
          if (this.form.excelId != null) {
            updateChlFmhsslBsInfo(this.form).then(response => {
              this.$modal.msgSuccess("修改成功");
              this.open = false;
              this.getList();
            }).finally(() => {
              this.buttonLoading = false;
            });
          } else {
            addChlFmhsslBsInfo(this.form).then(response => {
              this.$modal.msgSuccess("新增成功");
              this.open = false;
              this.getList();
            }).finally(() => {
              this.buttonLoading = false;
            });
          }
        }
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const excelIds = row.excelId || this.ids;
      this.$modal.confirm('是否确认删除粉煤灰烧失量试验检测记录编号为"' + excelIds + '"的数据项？').then(() => {
        this.loading = true;
        return delChlFmhsslBsInfo(excelIds);
      }).then(() => {
        this.loading = false;
        this.getList();
        this.$modal.msgSuccess("删除成功");
      }).catch(() => {
      }).finally(() => {
        this.loading = false;
      });
    },
    /** 导出按钮操作 */
    handleExport() {
      this.download('report_chl/chlFmhsslBsInfo/export', {
        ...this.queryParams
      }, `chlFmhsslBsInfo_${new Date().getTime()}.xlsx`)
    }
  }
};
</script>
